package com.huilian.iotbox.data.common;

/**
 * Created by ${zhangfanyan} on 2017/8/31.
 */
public enum ResponseCode {

    //成功的
    SUCCESS("0", "SUCCESS"),
    //错误的
    ERROR("1", "ERROR"),

    //余额不足
    INSUFFICIENT_BALANCE("11", "INSUFFICIENT_BALANCE"),
    //需要注册
    NEED_REGISTER("-1","NEED_REGISTER"),
    //未登录
    NEED_LOGIN("10", "NEED_LOGIN"),
    //非法参数
    ILLEGAL_ARGUMENT("2", "ILLEGAL_ARGUMENT");

    private final String code;
    private final String desc;

    ResponseCode(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

}
